const express = require('express');
const router = express.Router();
const cityController = require('../controllers/cityController');

// 获取所有城市
router.get('/', cityController.getAllCities);

// 根据国家代码获取城市
router.get('/country/:countryCode', cityController.getCitiesByCountry);

// 搜索城市
router.get('/search', cityController.searchCities);

module.exports = router; 